<?php
defined('_JEXEC') or die();

class WrdControllerConfig extends JControllerLegacy 
{
        function __construct( $default = array()){
    		parent::__construct( $default );
    	}

      	function display()
 		{
			switch($this->getTask()){
				case 'add':
					{
						JRequest::setVar( 'hidemainmenu', 1 );
						JRequest::setVar( 'layout', 'form'  );
						JRequest::setVar( 'view'  , 'config');
					} 
					break;
	            default:
	            	JRequest::setVar( 'view'  , 'products');
					//JRequest::setVar( 'view'  , 'config');
	            	break;
			}
			parent::display();
        }
        
  
}